// 工艺流程

// 导入封装好的网络请求类工具
import request from '../../../../../utils/request';
// 封装各种接口请求
// export const 接口名 = () => Network.get('/路由',参数对象);

//工艺流程-编辑保存数据
export const WorkflowDesignUpdate = (form) => {
    return request({
        url: '/workflowDesign/workflowDesignUpdate',
        method: 'put',
        data: form
    })
}

//工艺流程-删除数据
export const WorkflowDesignDelete = (id) => {
    return request({
        url: `/workflowDesign/workflowDesignDelete/${id}`,
        method: 'delete'
    })
}
//分页查询
export const FindWorkflowDesign = (current,size,condition) => {
    return request({
        url: `/workflowDesign/findWorkflowDesignByPage/${current}/${size}`,
        method: 'post',
        data:condition
        
    })
}
//工艺流程-查询数据
export const FindWorkflowDesignByCondition = (searchModel) => {
    return request({
        url: '/workflowDesign/findWorkflowDesignByCondition',
        method: 'post',
        data: searchModel
    })
}

//工艺流程-新增数据
export const WorkflowDesignAdd = (form) => {
    return request({
        url: '/workflowDesign/workflowDesignAdd',
        method: 'post',
        data: form
    })
}